package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.TrainingCadetTeacherExperience;
import com.ruoyi.system.domain.TrainingCadetTeacherExperienceCount;
import org.apache.ibatis.annotations.Param;

/**
 * 跟师心得Mapper接口
 * 
 * @author dp
 * @date 2023-11-27
 */
public interface TrainingCadetTeacherExperienceMapper 
{
    /**
     * 查询跟师心得
     * 
     * @param experienceId 跟师心得主键
     * @return 跟师心得
     */
    public TrainingCadetTeacherExperience selectTrainingCadetTeacherExperienceByExperienceId(Long experienceId);

    /**
     * 查询跟师心得列表
     * 
     * @param trainingCadetTeacherExperience 跟师心得
     * @return 跟师心得集合
     */
    public List<TrainingCadetTeacherExperience> selectTrainingCadetTeacherExperienceList(TrainingCadetTeacherExperience trainingCadetTeacherExperience);

    /**
     * 查询跟师心得合计列表
     * @param submitBegin
     * @param submitEnd
     * @param baseId
     * @param experienceStatus
     * @param cadetId
     * @param cadetName
     * @return
     */
    public List<TrainingCadetTeacherExperienceCount> selectTrainingCadetTeacherExperienceCount(@Param("submitBegin") String submitBegin,
                                                                                               @Param("submitEnd") String submitEnd,
                                                                                               @Param("baseId") String baseId,
                                                                                               @Param("experienceStatus") String experienceStatus,
                                                                                               @Param("cadetId") Long cadetId,
                                                                                               @Param("cadetName") String cadetName);

    public List<TrainingCadetTeacherExperience> getExperienceList(@Param("submitBegin") String submitBegin,
                                                                  @Param("submitEnd") String submitEnd,
                                                                  @Param("baseId") String baseId,
                                                                  @Param("cadetId") String cadetId,
                                                                  @Param("experienceStatus") String experienceStatus);

    /**
     * 新增跟师心得
     * 
     * @param trainingCadetTeacherExperience 跟师心得
     * @return 结果
     */
    public int insertTrainingCadetTeacherExperience(TrainingCadetTeacherExperience trainingCadetTeacherExperience);

    /**
     * 修改跟师心得
     * 
     * @param trainingCadetTeacherExperience 跟师心得
     * @return 结果
     */
    public int updateTrainingCadetTeacherExperience(TrainingCadetTeacherExperience trainingCadetTeacherExperience);

    /**
     * 删除跟师心得
     * 
     * @param experienceId 跟师心得主键
     * @return 结果
     */
    public int deleteTrainingCadetTeacherExperienceByExperienceId(Long experienceId);

    /**
     * 批量删除跟师心得
     * 
     * @param experienceIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTrainingCadetTeacherExperienceByExperienceIds(Long[] experienceIds);
}
